package com.jic.member.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.member.entity.MemberType;
import com.jic.member.request.MemberTypeRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 会员类型字典表
 * @author : 
 * @email : 
 * @since : 2020-01-17 10:33:01
 * @version : v1.0.0
 */
@Mapper
public interface  MemberTypeMapper {

    long insert(MemberTypeRequest memberTypeRequest);

    long delete(Long id);

    long update(MemberTypeRequest memberTypeRequest);

    MemberType queryByPrimaryKey(Long id);

    MemberType getMemberTypeInfo(@Param("memberTypeRequest")MemberTypeRequest memberTypeRequest);

    List<MemberType> query(MemberType memberType);

    List<MemberType> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("memberTypeRequest") MemberTypeRequest memberTypeRequest);

    long queryPageCount(@Param("memberTypeRequest") MemberTypeRequest memberTypeRequest);
}
